compare fractions with same numerator